<?php 

include_once './Car.class.php';
include_once './Dwu.class.php';
include_once './Dog.class.php';

/*$obj = new Car();*/  /*用汽车图纸制造 实物车*/

/*$obj->run();

$obj->color='red';

echo $obj->color;   调用某个对象里面的属性不加$符号

$obj1 = new Car();

echo $obj1->color;



$obj = new Car();
$obj->run();
$obj->color;
echo $obj->color;*/


$obj= new Dog('小白','15');

$obj->run('跑完就吃');

$obj->huo();

$obj->test(); /*在方法里调用父类*/

/*$obj1= new Dog('小黑','15');

$obj1->run('跑完就吃');*/
/*echo Dog:: $name;



Dwu::huo();*/





















 ?>